export default defineAppConfig({
  pages: [
    "pages/home/index",
    "pages/index/index",
    "pages/jifen/index",
    "pages/persional/index",
    "pages/document/index",
    "pages/knowledge/index",
    "pages/search-page/index",
    "pages/test-page/index",
  ],
  window: {
    navigationStyle: "custom",
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
  subPackages: [
    {
      root: "packageA",
      pages: [
        "pages/mall/index",
        "pages/detail-and-record/index",
        "pages/jifen-rank/index",
        "pages/persional-detail/index",
        "pages/contact-us/index",
        "pages/knowledge-detail/index",
        "pages/login/index",
        "pages/webview/index",
        "pages/index-search/index",
        "pages/my-collect/index",
        "pages/my-mission/index",
        "pages/about/index",
      ],
    },
  ],
  tabBar: {
    custom: true,
    color: "#000",
    selectedColor: "#60B89B",
    list: [
      {
        pagePath: "pages/home/index",
        text: "首页",
        iconPath: "./assets/tar-bar/index.png",
        selectedIconPath: "./assets/tar-bar/index-selected.png",
      },
      {
        pagePath: "pages/knowledge/index",
        text: "专业知识",
        iconPath: "./assets/tar-bar/zhishi.png",
        selectedIconPath: "./assets/tar-bar/zhishi-selected.png",
      },
      {
        pagePath: "pages/test-page/index",
        text: "知识测验",
        iconPath: "./assets/tar-bar/ceyan.png",
        selectedIconPath: "./assets/tar-bar/ceyan-selected.png",
      },
      {
        pagePath: "pages/jifen/index",
        text: "知识积分",
        iconPath: "./assets/tar-bar/jifen.png",
        selectedIconPath: "./assets/tar-bar/jifen-selected.png",
      },
      {
        pagePath: "pages/search-page/index",
        text: "知识搜索",
        iconPath: "./assets/tar-bar/sousuo.png",
        selectedIconPath: "./assets/tar-bar/sousuo-selected.png",
      },
    ],
  },
  lazyCodeLoading: "requiredComponents",
  permission: {},
  usingComponents: {
    "mp-html": "./components/mp-weixin/index",
  },
});
